package com.modular.iot.action;

import com.modular.iot.tool.ToolIotCmd;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionInfo;
import ntd.action.bo.ActionOutBo;

public class ActionIotCmdExe extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("IOT-cmd-exe", "action-iot-cmd-exe", this);
    }

    @Override
    public ActionOutBo handle() {
        String dataCode = actionInBo.getDataCode();
        String cmd = actionInBo.getParamStr("cmd");

        ToolIotCmd.pushCmd(dataCode, cmd, ToolIotCmd.TYPE_212, "手动控制");

        return new ActionOutBo("ok");
    }
}
